<!DOCTYPE html>
<!-- saved from url=(0030)http://item.mi.com/buy/miwifi3 -->
<html xml:lang="zh-CN">
    
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

        <title>
            小米路由器3立即购买-小米商城
        </title>
        <link rel="stylesheet" href="__PUBLIC__/Home/Chosebuy/base.min.css">
        <link rel="stylesheet" href="__PUBLIC__/Home/Chosebuy/buy-choose.min.css">
        <script src="__PUBLIC__/Compoent/XQ/js/jquery-1.8.2.js"></script> 
        <script src="__PUBLIC__/Compoent/XQ/js/xq_bigimg.js"></script>
        <script src="__PUBLIC__/cart/js/index.js"></script>
        <script src="__PUBLIC__/Compoent/lazyload/jquery.lazyload.js?v=1.9.1"></script> 
        
        <style>

            .log{
                width: 600px;
                height: 600px;
            }


            .imgBox{
                width: 100%;
                height: 100%;
            }


            .imgBox img{

                border:10px solid #fff;
                width: 100%;
            }


            .pro-info
            {
                float: right;
                margin-top: 60px;
                width: 400px;
            }

            .img{
                padding: 5px;
            }


            .imgdiv{

                border: 1px solid #ccc;
                width: 55px;
                height: 55px;
                display: inline-block;
                margin-left: 10px;
            }


        </style>

    </head>  
    <body>
   
        <div class="container buy-choose-box">
            <!-- 需要分组的产品在这里枚举 -->
            
                    <div class="bd">
                <div class="pro-choose-main clearfix" id="J_chooseMain">
                    <div class="pro-view">
                      
                      <img class="log" src="__PUBLIC__/Uploads/<{$data[0].logo}>" xq_big="true"  setting='{"pwidth":400,"pheight":400,"margin_top":0,"margin_left":0,"scale":3,"pclass":"border:1px solid #999"}'/>
                        <!-- <img src="__PUBLIC__/Uploads/<{$val.logo}>" alt=" <{$val.prodectsname}>"  id="J_proImg"> -->
                    </div>
                    <div class="pro-info">
                        <div class="pro-title clearfix">
                            <h1>
                                <span class="pro-name J_proDesc">

                                <notempty name="data">
                                购买<{$data[0].prodectsname}>
                                </notempty>
                                
                               
                                </span>
                                <span class="pro-price J_proPrice">
                                 <notempty name="data">
                                <{$data[0].price}>
                                </notempty>
                                 
                                </span>
                            </h1>
                        </div>
                        <p>
                        </p>
                       
                        <div id="J_proStep">
                  <!--           <div class="pro-choose-step J_step" data-index="1">
                                <div class="step-title">
                                    1. 选择<{$val.attr_name}>
                                    <i class="pro-version-desc-icon">
                                        !
                                    </i>
                                    <span class="pro-version-desc J_verDesc" data-index="1">
                                       <{$val.conntent}>
                                    </span>
                                </div>  
                                <ul class="step-list clearfix J_stepList">
                                    <li class="J_stepItem   active" data-index="1" data-node-id="975" title="白色 149元">
                                        <{$val.attr_value}>
                                    </li>
                                    
                                </ul>
                            </div> -->
                             <foreach name = 'data' item = 'val'>
                         
                                <div class="imgdiv" >
                                <span class="link" data-sku = '<{$val.sku_id}>'  data-max = "<{$val.proudct_id}>" >
                                <img src="__PUBLIC__/Uploads/<{$val.logo}>" class="img" width='50' height='50' alt="<{$val.attr_value}>"  title="<{$val.attr_value}>"></span>
                                </div>
                                

                              </foreach>
                        </div>
                        <div class="choose-result-msg" id="J_chooseResultMsg">
                            <span class="msg-tit">
                                您选择了以下产品:
                            </span>
                            <p class="msg-bd">
                                <{$val.prodectsname}> <{$val.attr_value}> <{$val.price}>
                            </p>
                        </div>
                        <div class="pro-choose-result" id="J_chooseResult">
                            <a href="<{:U('Home/cart/add',array('max_id'=> $data[0]['max_id'],'sku'=>$data[0][sku_id]))}>"  class="btn btn-primary buy" id="J_proBuyBtn">
                                立即购买
                            </a>
                        </div>
                        <!-- <div class="pro-choose-result hide" id="J_chooseResultInit"> -->
                            <!-- <a href="" class="btn btn-dakeLight"> -->
                                <!-- 下一步 -->
                            <!-- </a> -->
                            <!-- <span class="next-desc">请选择商品</span>
                        </div>
                    </div>
                    <!-- pro-info END -->
                <!-- </div> -->
                <!-- pro-choose_main End-->
            </div>
          
        
            <!-- bd END -->
        </div>

        <div class="imgBox">
            
          <volist name="img" id="v">
            
             <!-- <img src="__PUBLIC__/Uploads/<{:$v['detail_img']}>" alt=""> -->

             <img class="lazy" data-original="__PUBLIC__/Uploads/<{:$v['detail_img']}>" width="765" height="574" >
            
          </volist>
     
        </div>

        <!-- buy-choose-box END -->
    </body>

</html>


<script type="text/javascript" charset="utf-8">

  $(function() {

        $('.imgdiv :first').css('border',' 1px solid red');

      $("img.lazy").lazyload({effect:"slideDown"});


      $('.link').click(function(){

            $('.imgdiv').css('border',' 1px solid #ccc');

            $(this).parent().css('border','1px solid red');

            var img         = $(this).children().attr('src');

            var sku        = $(this).data('sku');

            var max_id     = $(this).data('max');



            $('.log').attr('src',img);

            $('.buy').attr('href','/index.php/Home/cart/add/max_id/'+max_id+'/sku/'+sku+'.html');
             

      })



  });




</script>